import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'ion:layers-outline',
      keepAlive: true,
      order: 1000,
      title: $t('page.functions.title'),
    },
    name: 'functions',
    path: '/funtions',
    children: [
      {
        meta: {
          title: $t('page.functions.fileTransfer'),
        },
        name: 'fileTransfer',
        path: '/functions/fileTransfer',
        component: () => import('#/views/functions/fileTransfer/index.vue'),
      },
      {
        meta: {
          title: $t('page.functions.flow'),
        },
        name: 'flow',
        path: '/functions/flow',
        component: () => import('#/views/functions/flow/index.vue'),
      },
      {
        meta: {
          title: $t('page.functions.screen'),
        },
        name: 'screen',
        path: '/functions/screen',
        component: () => import('#/views/functions/screen/index.vue'),
      },
      {
        meta: {
          title: $t('page.functions.watermark'),
        },
        name: 'watermark',
        path: '/functions/watermark',
        component: () => import('#/views/functions/watermark/index.vue'),
      },
    ],
  },
];

export default routes;
